home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / LProgressIndicator & Friends / LThermometerPane / LThermometerPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-27  |  968 b   |  47 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        LThermometerPane.h
  3.  
  4.     Contains:    Thermometer indicator pane for PowerPlant.
  5.                 An LProgressIndicator subclass.
  6.                 
  7.     Version:    2.0
  8.  
  9.     Author:        Chris K. Thomas, ckt@best.com
  10.     
  11.     Copyright:    ©1995 Chris K. Thomas.  All Rights Reserved.
  12. */
  13.  
  14. #pragma once
  15.  
  16. #include <LPane.h>
  17. #include "LProgressIndicator.h"
  18.  
  19. class LThermometerPane :    public LPane,
  20.                             public LProgressIndicator
  21. {
  22.     short                    mRight;
  23.     short                    mOriginOffset;
  24.     static PixPatHandle        sStripesPat;
  25.     static SInt32            sInstanceCount;
  26.     
  27. public:
  28.     
  29.     static LThermometerPane *    CreateThermometerFromStream(LStream *);
  30.  
  31.                         LThermometerPane(LStream *inStream);
  32.                         LThermometerPane(const SPaneInfo &inPaneInfo, ETaskType inTaskType = task_Indeterminate, 
  33.                                         Int32 inMin = 1, Int32 inMax = 100, Int32 inValue = 1);
  34.     
  35.     virtual                ~LThermometerPane();
  36.     
  37.     virtual void        ValueChanged();
  38.     virtual void        DrawSelf();
  39.     
  40. protected:
  41.     void DrawBox();
  42.     void DrawInside();
  43.     
  44.     void DrawInfiniteStripe(Rect &r);
  45. };
  46.  
  47.